package de.hsowl.tod4a.global.xml;

import org.xml.sax.Attributes;

public class AttributeHelper {

	private Attributes atts;
	private DataHelper data;

	public AttributeHelper(Attributes atts, DataHelper data) {
		this.atts = atts;
		this.data = data;
	}

	public String getValue(String name) {
		name = atts.getValue(name);
		if (name != null) {
			return data.restoreString(name);
		}
		return null;
	}
}
